﻿<%@ Page Language="C#" AutoEventWireup="True" Inherits="PlugNT.Cms.Web.Admin.Pre_Article.Admin" ValidateRequest="false" Codebehind="Admin.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>内容管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="../js/article.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        LoadExtSearch();
    });
</script>
</head>
<body>

<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>内容&nbsp;&gt;&nbsp;<%=artName%>管理&nbsp;&gt;&nbsp;内容列表</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="./Add.aspx">添加内容</a></label> | </td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>


<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">

    
    <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#DDE9FF">
     <tr>
        <td bgcolor="#ecf5ff">
            <table  width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td align="left" style="width:20px;">
                    <img src="../images/cms-ico2.gif" width="16" height="16" align="absmiddle">
                  </td>
                  <td align="left" valign="middle">
                    <span style=" float:left; clear:both:">
                        筛选：<asp:DropDownList ID="ddlMenu" runat="server" ></asp:DropDownList>
                    </span>
                  </td>
                  <td align="right">
                    <table border="0" cellpadding="0" cellspacing="0" style="position:relative;">
                      <tr>
                        <td><img src="../images/cms-ico7.gif" width="12" height="11" align="absmiddle"> 标题或编号： </td>
                        <td><input id="keywords" type="text" class="input" style="width:110px; height:15px" value="<% =keyword %>"></td>
                        <td width="60px" align="center" title="精确查询性能会更好速度会更快">
                          <label for="isexact" style="cursor:hand;">
                            <input type="checkbox" id="isexact" name="isexact" <% =isexact=="1"?"checked=checked":"" %>  />精确
                          </label>
                        </td>
                        <td width="100px" align="right" valign="middle"> 
                          <div id="extsearch" style=" display:none; width:218px; height:auto; text-align:left; line-height:18px; padding:5px 0 7px 0; background-color:#ecf5ff; border:1px solid #dde9ff; border-top:0px; position:absolute; top:28px; right:-6px;">
                               <%=GetFieldSearchCode()%>
                          </div>
                          <label for="extsenior" style="cursor:hand; font-weight:bold; color:#264d84;">
                            <span id="extsenior" onclick="ShowExtSearch();">高级↓</span>
                          </label>
                          <input id="iptsearch" type="button" value=" 搜索 " class="bt" onclick="SubmitUrl();" />
                          <asp:HiddenField ID="hidExtField" runat="server" />
                          <!-- 高级↓ //-->
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
            </table>
        </td>
     </tr>
    </table>
    
    <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
        <tr>
            <td width="23" height="25" nowrap bgcolor="#DDE9FF"></td>                
            <td width="28" nowrap bgcolor="#DDE9FF"><span class="line">编号</span></td>
            <td align="center" bgcolor="#DDE9FF"><span class="line">标题</span></td>
            <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">录入日期</span></td>
            <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">生成</span></td> 
            <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">发布</span></td>  
            <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">置顶</span></td>    
            <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">推荐</span></td>   
            <td align="center" nowrap bgcolor="#DDE9FF"><span class="line">操作</span></td>
        </tr>
        <asp:Repeater ID="rptAdmin" runat="server" OnItemDataBound="rptAdmin_ItemDataBound">
        <ItemTemplate>
        <tr align="center" onmouseover="SwapColor(this,true);" onmouseout="SwapColor(this,false);" style="background-color:#F4FBFF;"> 
            <td height="25" nowrap>
                <asp:CheckBox ID="cbxId" runat="server" />
            </td>
            <td nowrap>
                <asp:Label ID="labId" runat="server" Text='<%#Eval("id") %>'></asp:Label>
            </td>
            <td>
              <div style="width:300px; overflow:hidden; text-overflow:ellipsis; word-break: break-all;">
                <asp:Literal ID="litTitle" runat="server"></asp:Literal>
              </div>
            </td>
            <td nowrap title='<%#Eval("addtime") %>'><%#Eval("addtime")%></td>
            <td align="center" nowrap>
                <asp:Literal ID="litHasFile" runat="server"></asp:Literal>
            </td>    
            <td align="center" nowrap>
                <a href="javascript:SubmitUrl('publish','<%#Eval("id") %>','<%#Eval("publish").ToString()=="1"?"0":"1" %>','<%#currPageCount%>');">
                <b><%#(Eval("publish").ToString()=="1") ? "<font color='#FF3300' title='点击取消发布'><img src='../images/cms-ico7.gif' border='0' /></font>" : "<font color='#FF3300' title='点击发布'><img src='../images/cms-ico6.gif' border='0' /></font>"%></b>
                </a> 
            </td>
            <td align="center" nowrap>
                <a href="javascript:SubmitUrl('stick','<%#Eval("id") %>','<%#Eval("stick").ToString()=="1"?"0":"1" %>','<%#currPageCount%>');">
                <b><%#(Eval("stick").ToString() == "1") ? "<font color='#FF3300' title='点击取消置顶'><img src='../images/cms-ico7.gif' border='0' /></font>" : "<font color='#FF3300' title='点击置顶'><img src='../images/cms-ico6.gif' border='0' /></font>"%></b>
                </a> 
            </td>
            <td align="center" nowrap>
                <a href="javascript:SubmitUrl('commend','<%#Eval("id") %>','<%#Eval("commend").ToString()=="1"?"0":"1" %>','<%#currPageCount%>');">
                <b><%#(Eval("commend").ToString() == "1") ? "<font color='#FF3300' title='点击取消推荐'><img src='../images/cms-ico7.gif' border='0' /></font>" : "<font color='#FF3300' title='点击推荐'><img src='../images/cms-ico6.gif' border='0' /></font>"%></b>
                </a> 
            </td>
            <td align="center" nowrap> 
                <a href="Edit.aspx?id=<%#Eval("id") %>">编辑</a> | 
                <a href="javascript:SubmitUrl('delete','<%#Eval("id") %>','<%#Eval("publish").ToString() %>','<%#currPageCount%>');" onclick="return window.confirm('确定删除编号 [<%#Eval("id") %>] 的数据吗?')">删除</a>
            </td>
        </tr>
        </ItemTemplate>
    </asp:Repeater>
    <tr>
        <td height="25" colspan="9" bgcolor="#F4FBFF">
        <table cellpadding="0" cellspacing="0" width="100%" style="position:relative;">
            <tr>
                <td>
                    <input name="chkAll" type="checkbox" id="chkAll" onClick="CheckAll(form)" value="checkbox" style="position:absolute;clip: rect(6 15 15 6)">
                    <img for="chkAll" src="../images/cms-ico12.gif" border="0">
                    <asp:ImageButton ID="ibtnAlldelete" runat="server" ImageUrl="../images/cms-ico10.gif" OnClientClick="return window.confirm('确定删除这些内容吗?');" onclick="ibtnAlldelete_Click" style="width: 63px" />      
                    <asp:ImageButton ID="ibtnStick" runat="server" ImageUrl="../images/cms-ding.gif" OnClientClick="return DoNothing('puState','正在置顶请稍候...');" onclick="ibtnStick_Click" style="width: 63px" />      
                    <asp:ImageButton ID="ibtnCommend" runat="server" ImageUrl="../images/cms-tj.gif" OnClientClick="return DoNothing('puState','正在推荐请稍候...');" onclick="ibtnCommend_Click" style="width: 63px" />                          
                    <asp:ImageButton ID="ibtnPublish" runat="server" ImageUrl="../images/cms-K.gif" OnClientClick="return DoNothing('puState','正在发布请稍候...');" onclick="ibtnPublish_Click" style="width: 63px" />                 
                    <span id="puState" style="top:0px; color:#999999; display:none;"></span>
                </td>
                <td class="pager">
                    <asp:Literal ID="litPager" runat="server"></asp:Literal>
                </td>
            </tr>
        </table>
        </td>
    </tr>
    </table>
          

</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>
